package com.company.emallbackend.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.company.emallbackend.entity.User;
import com.company.emallbackend.entity.dto.LoginDTO;
import com.company.emallbackend.entity.dto.RegisterDTO;
import com.company.emallbackend.entity.dto.ResetPwdDTO;
import com.company.emallbackend.entity.vo.LoginVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hanlijian
 * @since 2023-01-11
 */
public interface IUserService extends IService<User> {

    /**
     * 用户登录
     * @param loginDTO
     * @return
     */
    LoginVo login(LoginDTO loginDTO);

    /**
     * 用户注册
     * @param registerDTO
     */
    void register(RegisterDTO registerDTO);

    /**
     * 邮箱验证
     * @param email
     */
    void sendEmail(String email,String type);

    /**
     * 重置密码
     * @param resetPwdDTO
     */
    void passwordRest(ResetPwdDTO resetPwdDTO);
}
